﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;


namespace AnyOffice.general.rms.roll_manage
{
    public partial class file_delete : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int num = (Request.QueryString["rollpage"] != null) ? int.Parse(Request.QueryString["rollpage"].ToString()) : 1;
            int num2 = (Request.QueryString["page"] != null) ? int.Parse(Request.QueryString["page"].ToString()) : 1;
            int fileId = (Request.QueryString["file_id"] != null) ? int.Parse(Request.QueryString["file_id"].ToString()) : 0;
            int num4 = (Request.QueryString["roll_id"] != null) ? int.Parse(Request.QueryString["roll_id"].ToString()) : 0;
            new RmsFileDao().Delete(base.Conn, fileId, base.User.Identity.Name);
            base.CloseConn();
            Response.Redirect("roll_file.aspx?roll_id=" + num4.ToString() + "&page=" + num2.ToString() + "&rollpage=" + num.ToString());
        }


    }
}
